﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="rawdataadd.aspx.cs" Inherits="UI.system.page.rawdata.rawdataadd" %>
<%@ Import Namespace="Model" %>
<%@ Import Namespace="Common" %>
<style>
    .layui-input-block textarea{ width:220px; margin:0px; padding:0 0 0px 10px; line-height:25px;}
    .layui-input-inline input{ width:220px;}
</style>
<div style="margin: 15px;">
	<form class="layui-form" style="padding-left:0px;">
        <div class="layui-form-item">
			<label class="layui-form-label"><font>实验号</font><em>*</em></label>
			<div class="layui-input-inline">
                <input type="text" name="experimentnumber" placeholder="请输入实验号" lay-verify="required" class="layui-input" value="<%=info.ExperimentNumber %>">
			</div>
		</div>	
        <div class="layui-form-item">
			<label class="layui-form-label"><font>姓名</font><em>*</em></label>
			<div class="layui-input-inline">
                <input type="text" name="name" placeholder="请输入姓名" lay-verify="required" class="layui-input" value="<%=info.Name %>">
			</div>
		</div>	
        <div class="layui-form-item">
			<label class="layui-form-label"><font>主条码</font><em>*</em></label>
			<div class="layui-input-inline">
                <% if (info.UCode != null && info.UCode != "")
                   {  %>
                <input type="text" name="ucode" placeholder="请输入主条码" lay-verify="required" class="layui-input" value="<%=info.UCode %>" readonly="readonly" style=" background-color:#F2F2F2;">
                <%}
                   else
                   { %>
                   <input type="text" name="ucode" placeholder="请输入主条码" lay-verify="required" class="layui-input" value="">

                <%} %>
			</div>
		</div>      
        <div class="layui-form-item">
			<label class="layui-form-label"><font>医院</font><em>*</em></label>
			<div class="layui-input-inline">
                <input type="text" name="hospital" placeholder="请输入医院" lay-verify="required" class="layui-input" value="<%=info.Hospital %>">
			</div>
		</div>	
        <div class="layui-form-item">
			<label class="layui-form-label"><font>诊断意见</font></label>
			<div class="layui-input-inline">
                <input type="text" name="opinions" placeholder="请输入诊断意见" class="layui-input" value="<%=info.Opinions %>">
			</div>
		</div>
        <div class="layui-form-item">
			<label class="layui-form-label"><font>报告医生</font></label>
			<div class="layui-input-inline">
                <input type="text" name="reportdoctor" placeholder="请输入报告医生" class="layui-input" value="<%=info.ReportDoctor %>">
			</div>
		</div>
        <div class="layui-form-item">
			<label class="layui-form-label"><font>项目名称</font><em>*</em></label>
			<div class="layui-input-inline">
                <input type="text" name="entryname" placeholder="请输入项目名称" lay-verify="required" class="layui-input" value="<%=info.EntryName %>">
			</div>
		</div>
        <div class="layui-form-item">
			<label class="layui-form-label"><font>玻片数量</font><em>*</em></label>
			<div class="layui-input-inline">
                <input type="text" name="bpcount" id="bpcount" placeholder="请输入玻片数量" lay-verify="required" class="layui-input" value="<%=info.BPCount %>">
			</div>
		</div>	
        <div class="layui-form-item">
			<label class="layui-form-label"><font>蜡块数量</font><em>*</em></label>
			<div class="layui-input-inline">
                <input type="text" name="lkcount" id="lkcount" placeholder="请输入蜡块数量" lay-verify="required" class="layui-input" value="<%=info.LKCount %>">
			</div>
		</div>	
         <div class="layui-form-item">
			<label class="layui-form-label"><font>病理号</font><em>*</em></label>
			<div class="layui-input-inline">
                <input type="text" name="blcode" placeholder="请输入病理号" class="layui-input" value="<%=info.BLCode %>">
			</div>
		</div>
        <div class="layui-form-item">
			<label class="layui-form-label"><font>性别</font><em>*</em></label>
			<div class="layui-input-block">
                <input type="radio" name="sex"  value="0" title="男" <%=info.Sex==0?"checked='checked'":"" %> />
                <input type="radio" name="sex"  value="1" title="女" <%=info.Sex==1?"checked='checked'":"" %> />
			</div>
		</div>
        <div class="layui-form-item">
			<label class="layui-form-label"><font>年龄</font><em>*</em></label>
			<div class="layui-input-inline">
                <input type="text" name="age" placeholder="请输入年龄" lay-verify="required" class="layui-input" value="<%=info.Age %>">
			</div>
		</div>
        
        
        <div class="layui-form-item">
			<label class="layui-form-label"><font>图文数</font></label>
			<div class="layui-input-inline">
                <input type="text" name="tuwenshu" placeholder="请输入图文数" class="layui-input" value="<%=info.TuWenShu %>">
			</div>
		</div>
        <div class="layui-form-item">
			<label class="layui-form-label"><font>大图文数</font></label>
			<div class="layui-input-inline">
                <input type="text" name="datuwenshu" placeholder="请输入大图文数" class="layui-input" value="<%=info.DaTuWenShu %>">
			</div>
		</div>
        
        <div class="layui-form-item">
			<label class="layui-form-label"><font>病理流程</font></label>
			<div class="layui-input-inline">
                <input type="text" name="process" placeholder="请输入病理流程" class="layui-input" value="<%=info.Process %>">
			</div>
		</div>
        <div class="layui-form-item">
			<label class="layui-form-label"><font>状态</font></label>
			<div class="layui-input-inline">
                <input type="text" name="state" placeholder="请输入状态" class="layui-input" value="<%=info.State %>">
			</div>
		</div>        
        <div class="layui-form-item">
			<label class="layui-form-label"><font>迟</font></label>
			<div class="layui-input-inline">
                <input type="text" name="late" placeholder="请输入迟" class="layui-input" value="<%=info.Late %>">
			</div>
		</div>
         <div class="layui-form-item">
			<label class="layui-form-label"><font>迟发原因</font></label>
			<div class="layui-input-inline">
                <input type="text" name="delayedcause" placeholder="请输入迟发原因"  class="layui-input" value="<%=info.DelayedCause %>">
			</div>
		</div>
         <div class="layui-form-item">
			<label class="layui-form-label"><font>外包方</font></label>
			<div class="layui-input-inline">
                <input type="text" name="outsourcingparty" placeholder="请输入外包方" class="layui-input" value="<%=info.OutsourcingParty %>">
			</div>
		</div>
         <div class="layui-form-item">
			<label class="layui-form-label"><font>终止</font></label>
			<div class="layui-input-inline">
                <input type="text" name="termination" placeholder="请输入终止" class="layui-input" value="<%=info.Termination %>">
			</div>
		</div>
         <div class="layui-form-item">
			<label class="layui-form-label"><font>终止原因</font></label>
			<div class="layui-input-inline">
                <input type="text" name="terminationreason" placeholder="请输入终止原因" class="layui-input" value="<%=info.TerminationReason %>">
			</div>
		</div>
         <div class="layui-form-item">
			<label class="layui-form-label"><font>退单</font></label>
			<div class="layui-input-inline">
                <input type="text" name="back" placeholder="请输入退单" class="layui-input" value="<%=info.Back %>">
			</div>
		</div>
        <div class="layui-form-item">
			<label class="layui-form-label"><font>退单原因</font></label>
			<div class="layui-input-inline">
                <input type="text" name="backreason" placeholder="请输入退单原因" class="layui-input" value="<%=info.BackReason %>">
			</div>
		</div>
        <div class="layui-form-item">
			<label class="layui-form-label"><font>提交人</font></label>
			<div class="layui-input-inline">
                <input type="text" name="submitter" placeholder="请输入提交人" class="layui-input" value="<%=info.Submitter %>">
			</div>
		</div>
        <div class="layui-form-item">
			<label class="layui-form-label"><font>审核人</font></label>
			<div class="layui-input-inline">
                <input type="text" name="auditor" placeholder="请输入审核人" class="layui-input" value="<%=info.Auditor %>">
			</div>
		</div>
        <div class="layui-form-item">
			<label class="layui-form-label"><font>取材医生</font></label>
			<div class="layui-input-inline">
                <input type="text" name="referencedoctor" placeholder="请输入取材医生"  class="layui-input" value="<%=info.ReferenceDoctor %>">
			</div>
		</div>
        <div class="layui-form-item">
			<label class="layui-form-label" style=" width:100px; padding:9px 0px;"><font>标本签收时间</font><em>*</em></label>
			<div class="layui-input-block">
                <input type="text" id="qsdate" name="specimensigningtime" placeholder="请输入标本签收时间" lay-verify="required" autocomplete="off" class="layui-input" value="<%=datetime %>" style="width:220px;">
			</div>
		</div>
        
       <div class="layui-form-item">
			<label class="layui-form-label"><font>备注</font></label>
			<div class="layui-input-block">
				<textarea name="remarks" placeholder="请输入备注" class="layui-textarea" rows="1"><%=info.Remarks%></textarea>
			</div>
		</div>
        <div class="layui-form-item" style="display:none">
			<label class="layui-form-label"><font>创建时间</font><em>*</em></label>
			<div class="layui-input-inline">
                <input type="text" name="createdate" placeholder="请输入创建时间" lay-verify="required" class="layui-input" value="<%=info.CreateDate %>">
			</div>
		</div>
		<a lay-filter="save" lay-submit style="display: none;"></a>
	</form>
</div>
<script>
    layui.use(["form", "table", "laydate"], function () {
        var $ = layui.jquery, form = layui.form, laydate = layui.laydate;
        table = layui.table;
        laydate.render({
            elem: '#qsdate',
            type: 'datetime',
            format: 'yyyy-MM-dd HH:mm:ss' //可任意组合
        });
    });

    

    loads();
    function loads() {
        if("<%=info.ID %>" =="0"){
            $("#qsdate").val(getNowFormatDate());
        }        
        var bpcount = $("#bpcount").val();
        var lkcount = $("#lkcount").val();
        if (bpcount == 0) {
            $("#bpcount").val("");
        }
        if (lkcount == 0) {
            $("#lkcount").val("");
        }
    }
    
</script>